<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>  

<head>
<title>东方易云后台管理系统-----Partner</title>

<link rel="stylesheet" type="text/css" href="/resource/js/tree_themes/SimpleTree.css"/>
<script type="text/javascript" src="/resource/js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="/resource/js/SimpleTree.js"></script>
<script type="text/javascript">
function changeGroup(){
	$("#groupId").val($("#changegroupId  option:selected").val());
	$("#changeGroupForm").submit();

}
function linkTo(hrefVal){
	
	 if(hrefVal !=null &&  hrefVal !=''){
		window.location=hrefVal;
	}
}
	
$(function(){
	$(".st_tree").SimpleTree({
		click:function(a){
			
		}
	});
});

</script>

</head>

<body>


  dear , ${sessionScope.sessionUserBean.userInfoVO.username} ,please <a href="/logout" >quit</a>
  
  <div>
  
  		<c:if test="${sessionScope.sessionUserBean.groupInfoVO.groupLevel eq '1'}">
	  		<form  id="changeGroupForm" action="/index/changegroup"  method="post">
				<input  id ="groupId" name="groupId" type="hidden">
				<SELECT ID="changegroupId" SIZE="1" onchange="changeGroup();">
					<c:forEach var="groupRightBean" items="${sessionScope.sessionUserBean.groupRightBeanList}" varStatus="groupright">
						<OPTION VALUE="${groupRightBean.groupInfoVO.groupId}" <c:if test="${sessionScope.sessionUserBean.groupInfoVO.groupId eq groupRightBean.groupInfoVO.groupId}">selected</c:if> >${groupRightBean.groupInfoVO.groupName}</OPTION>
					</c:forEach>
				</SELECT>
			
			</form>
  		
  		
  		</c:if>

  </div>
   

<%--    <div class="st_tree">
		<ul>
		

					<c:forEach var="parentMenuVO" items="${sessionScope.sessionUserBean.parentMenuVOList}" varStatus="parent">
						<li><a href="${parentMenuVO.url}" onclick="nav(${parentMenuVO.url})">${parentMenuVO.menuName}</a></li>
						
						<ul>
							<c:forEach var="childMenuVO" items="${sessionScope.sessionUserBean.childMenuVOList}" varStatus="childStatus">
								
										<c:if test="${childMenuVO.parentId eq parentMenuVO.menuId }">
										 	<li><a href="${childMenuVO.url}" >${childMenuVO.menuName}</a></li>
									   </c:if>
						   
							</c:forEach>
						</ul>
				
					</c:forEach>
		
		</ul>
	</div> --%>
	
	
<div style="width:100%;">
	<table border="1" style="float:left; width:15%;">
		
		<c:forEach var="parentMenuVO" items="${sessionScope.sessionUserBean.parentMenuVOList}" varStatus="parentStatus">
			<tr>
			
					<td><a href="javascript:void(0);" target='<c:if test="${!parentStatus.last}">targetFrame</c:if>' 
 						onclick="linkTo('${parentMenuVO.url}');"
 						style="<c:choose><c:when test="${empty parentMenuVO.url}">text-decoration:none;</c:when><c:otherwise></c:otherwise></c:choose>"
 						><font color="red">${parentMenuVO.menuName}</font></a></td>
			</tr>
				
				<c:forEach var="childMenuVO" items="${sessionScope.sessionUserBean.childMenuVOList}" varStatus="childStatus">
						
						<c:if test="${childMenuVO.parentId eq parentMenuVO.menuId }">
						 	<tr><td><a href="${childMenuVO.url}"  target="targetFrame">${childMenuVO.menuName}</a></td></tr>
					   </c:if>
	
				</c:forEach>
	

		</c:forEach>
	</table>
	
	<iframe style="float:left;width:80%;" height=830 frameborder=0 scrolling=auto name="targetFrame"></iframe>
</div>


</body>

</html>
